package com.yuyu.storage.infrastructure.persisitence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yuyu.commons.po.AbstractBasePO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author
 * @version 1.0
 * @description: 库存PO类
 * @date 2022/8/10 14:30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_goods_stock")
public class GoodsStockPO extends AbstractBasePO {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private Long goodsId; //商品id

    private Long stockNum; //商品库存

    private Long shopId;   //商店id

    private Long frozenNum; //冻结库存
}
